/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Service;

/**
 * <p>Project: spring2022 - Log
 * <p>Powered by webrx On 2022-03-18 10:45:00
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */

@Service @Aspect
public class Log {


    @Before("execution(public * cn.webrx..*.*(..))")
    public void init(){
        System.out.println("初始化，连接数据库.....");
    }

    public void close(){
        System.out.println("关闭数据库连接......");
    }
}
